

#ifndef _SHELL_RESMININGADDRESSTIME_MESSAGE_H_
#define _SHELL_RESMININGADDRESSTIME_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
using namespace std;

class ResMiningAddressTimeMessage : public Message
{
	public:
	ResMiningAddressTimeMessage();
	~ResMiningAddressTimeMessage();
	void reset();
	ResMiningAddressTimeMessage* clone();
	static const int _ID;
	//矿区id
	int32 miningId;
	//矿点id
	int32 miningAddressId;
	//矿点挖矿剩余时间
	int32 time;
	//玩家挖矿剩余时间
	int32 timePlayer;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
